<?php
/**
 * 登入验证
 */
namespace App\Http\Middleware;

use Closure;

class Authenticate
{
    /**
     * @param $request
     * @param Closure $next
     * @param null $guard
     * @return mixed
     */
    public function handle($request, Closure $next, $guard = null)
    {
        if(!$request->session()->has('user_name')) {
           // return redirect()->route('Login');
        }
        return $next($request);
    }
}
